package com.huage_07.lesson_02;

import java.io.FileInputStream;
import java.io.IOException;

public class InputStreamDemoPro {
    public static void main(String[] args)throws IOException {
        FileInputStream fis = new FileInputStream("class1\\src\\com\\huage_07\\lesson_02\\字节输出流.txt");

        byte[] bytes = new byte[1024];//一个字节及其整数倍
        int len;
        while ((len=fis.read(bytes))!=-1){
            System.out.println(new String(bytes,0,len));
        }

        fis.close();
    }
}
